const asarUtil = require('../../common/utils/asarUtil');
const pluginWarper = require('../warper/pluginWarper');
const searchWarper = require('../warper/searchWarper');





exports.createPackage = function (request, event) {
    console.info("createPackagerequest", request)
    const path = request.subInputDetail.path
    asarUtil.createPackage(path)
    const plugin = pluginWarper.functionPluginWarper("离线安装插件", "本地离线安装插件", null, "setupPackage")
    const searchResult = searchWarper.searchResultWarper(null, [plugin])
    event.returnValue = searchResult
}
